projects
/
cargo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6c07a6
)
Strip first unused argument when passing to subcommand
author
Jan-Erik Rediger
<janerik@fnordig.de>
Tue, 24 Feb 2015 11:00:58 +0000
(12:00 +0100)
committer
Jan-Erik Rediger
<janerik@fnordig.de>
Tue, 24 Feb 2015 20:10:22 +0000
(21:10 +0100)
src/bin/cargo.rs
patch
|
blob
|
history
diff --git
a/src/bin/cargo.rs
b/src/bin/cargo.rs
index b69459da71e750fd2fb5de67d4ec57ed3b3a5761..a7acdb04cdd8100c0eafbe6359e94ac471346577 100644
(file)
--- a/
src/bin/cargo.rs
+++ b/
src/bin/cargo.rs
@@
-164,7
+164,7
@@
fn execute_subcommand(cmd: &str, args: &[String], shell: &mut MultiShell) {
}
};
let status = Command::new(command)
- .args(
args
)
+ .args(
&args[1..]
)
.stdin(InheritFd(0))
.stdout(InheritFd(1))
.stderr(InheritFd(2))